<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本和字体相关</title>
    <style>
        div {
            width: 200px;
            height: 50px;
            border: 1px solid red;
            text-align: center;
            line-height: 50px;
            text-decoration: overline;
            text-decoration: underline;
            text-decoration: line-through;
            text-decoration: none;
            text-shadow: red -50px 50px 3px;
            font-size: 12px;
            font-weight: bold;
            font-style: italic;
            font-family: cursive;
        }

        a {
            text-decoration: none
        }

        h1 {
            font-weight: normal;
            font: 15px cursive;
        }
    </style>
</head>
<body>
<h1>这是h1</h1>
<a href="">超链接</a>
<div>文本字体相关</div>
</body>
</html>